package uit.nfcmenu.manager;

import uit.nfcmenu.webservice.MyException;
import android.content.Context;

public class SyncManager {

	private static SyncManager instance;
	Context mContext;

	public SyncManager(Context context) {
		mContext = context;
	}

	public static SyncManager getInstance(Context context) {
		if (instance == null) {
			instance = new SyncManager(context);
		}
		return instance;
	}

	public void run() throws MyException {
		MenuManager.getInstance(mContext).updateMenus();
		ItemManager.getInstance(mContext).updateItems();
		OrderManager.getInstance(mContext).updateOrders();
	}
}
